package br.ufmg.dcc.vod.remoteworkers.util;

import java.rmi.RemoteException;

import br.ufmg.dcc.vod.remoteworkers.sync.SyncCommandProcessor;

public class MyThread extends Thread {

	private final SyncCommandProcessor processor;
	private final RaceConditionCommand command;

	public MyThread(SyncCommandProcessor processor, RaceConditionCommand command) {
		this.processor = processor;
		this.command = command;
	}

	@Override
	public void run() {
		try {
			processor.process(command);
		} catch (RemoteException e) {
		} catch (Exception e) {
		}
	}
}
